<style>
    #scrollDiv{overflow:hidden;height:20px;line-height:20px;}
    #scrollDiv li{height:20px;padding-left:10px;}
</style>
<div class="top w920">
    <div class="logo"><img src="img/<?php echo $_COOKIE[Q::ini('session_cookie_name').'style']?>/logo.png" /></div>
    <div class="con">
        <p class="style">现在时间：<?php echo FUNC::d(null, 'Y年m月d号 H:i')?> <img src="img/<?php echo $_COOKIE[Q::ini('session_cookie_name').'style']?>/colorset.png" /></p>
        <p class="fig"><a href="#" onclick="myAddPanel('http://www.123.com', '<?php echo Helper_Common::iniFront('sitename')?>')">收藏本站</a> | <a href="#" onclick="setHome('http://123.com', '是否要设为首页');">设为首页</a> | <a href="<?php echo url('onepage', array('name'=>'option_gird')) ?>">操作指南</a> | <a href="<?php echo url('users/profile') ?>">个人中心</a>
            <?php if(Helper_RBAC::chkroles('ADMIN')):?>
            | <a href="<?php echo url('admin::/index') ?>&controller=default" target="_blank">后台管理</a>
            <?php endif ?>
        </p>
        <p class="time">
            <?php if($user->id()): ?>
            欢迎您！<b class="red"><?php echo $user->username ?></b> <a href="<?php echo url('users/logout') ?>"><img src="img/<?php echo $_COOKIE[Q::ini('session_cookie_name').'style']?>/out_ico.png" /></a>
            <?php endif ?>
            
<div style="display:none;">
更换样式: <a href="###" onclick="setstyle('default', true);">default</a> <a href="###" onclick="setstyle('default__');">green</a> <a href="###" onclick="setstyle('red', true);">red</a> <a href="###" onclick="setstyle('blue', true);">blue</a>
</div>
           
        </p>
    </div>
</div>
<div class="nav">
    <div class="box w920">
        <div class="menu">
            <ul>
                <li class="on item"><a href="<?php echo url('default') ?>">首 页</a></li>
                <?php foreach($menus as $key=>$menu): ?>
                <li class="off s_menu_<?php echo $menu->col_id ?>">
                    <?php// if(!$menu->fields->hidden): ?>
                    <?php if($menu->fields->outsite_url): ?>
                    <a href="<?php echo $menu->fields->outsite_url ?>&col_id=<?php echo $menu->col_id ?>"><?php echo $menu->name ?></a>
                    <?php else: ?>
                    <a href="<?php echo url('articles', array('col_id'=>$menu->col_id)) ?>"><?php echo $menu->name ?></a>
                    <?php// endif ?>
                    <?php endif ?>
                </li>
                <?php endforeach ?>

            </ul>
        </div>
        <div class="other">
            <div class="left" id="scrollDiv">
                <ul>
                    <?php $this->_control('article_call', null, array('col_id'=>Helper_Common::iniFront('tz_column_id'), 'no_role'=>true,'viewname'=>'tz')) ?>
                </ul>
            </div>
            <div class="right"><a href="<?php echo url('articles', array('col_id'=>Helper_Common::iniFront('tz_column_id'))) ?>"><img src="img/<?php echo $_COOKIE[Q::ini('session_cookie_name').'style']?>/nav_n_r.png" /></a></div>
        </div>
        <div class="seach">
            <ul>
                <form method="post" action="<?php echo url('articles') ?>">
                    <li class="keyset"><?php echo $drop_searchtype ?></li>
                    <li class="keyin"><input style="width:100%;border:none;" type="text" name="keyword" value="<?php echo FUNC::getV('keyword') ?>" onclick="this.select();" /></li>
                    <li><input type="image" class="hand" src="img/<?php echo $_COOKIE[Q::ini('session_cookie_name').'style']?>/seach_ico.png" /></li>
                </form>
            </ul>

        </div>
    </div>
</div>